﻿
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Index.cshtml";
}
<style type="text/css">
    .form .formValue input.form-control {
        height: 32px;
        line-height: 32px;
        padding: 0px;
        resize: none;
        border-radius: 0px;
        box-shadow: none;
        text-indent: 5px
    }

    .zdyPanel {
        background-color: #fff;
        border-top: 1px solid #ddd;
        border-left: 1px solid #ddd;
        border-right: 1px solid #ddd;
        margin: 0px;
        float: left;
        width: 100%;
    }

    .zdyBar {
        padding: 0px;
        margin: 0px;
        margin-top: 3px;
    }

    .zdyGirdPanel {
        width: 100%;
        margin: 0px;
        padding: 0px;
        float: left;
    }

    .zdyUL {
        list-style-type: none;
        margin: 5px 0px 0px -3px;
        padding: 0px;
    }

        .zdyUL li {
            float: left;
            list-style: none;
            height: 24px;
            line-height: 22px;
        }

            .zdyUL li a {
                cursor: pointer;
                padding: 5px 10px;
                border-radius: 4px;
            }

            .zdyUL li i {
                margin-right: 4px;
                font-size: 13px;
                color: #666;
                vertical-align: middle;
                margin-top: -1px;
            }

            .zdyUL li a:hover {
                text-decoration: none;
                background-color: #1ABC9C;
                color: #fff;
            }
</style>
<script>
    $(function () {
        gridList();
    });
    function gridList() {
        var F_DemandId = $.request("F_DemandId");
        var type = $.request("type");
        var $gridList = $("#gridList");       
        var queryJson = {
            F_DemandId: F_DemandId,
            F_Type: type
        };
        $gridList.dataGrid({
            url: "/OrderFlowManage/ClientOrder/GetSaleReportGridHistoryData",
            postData: { queryJson: JSON.stringify(queryJson) },
            height: 480,
            colModel: [                                      
                {
                    label: '日报标题', name: 'F_ReportTitle', width: 150, align: 'left'
                },
                { label: '销售人员', name: 'F_RealName', width: 80, align: 'left' },
                { label: '跟进时间', name: 'F_CreatorTime', width: 110, align: 'left' },
                { label: '日报内容', name: 'F_Context', width: 500, align: 'left' },
                { label: '', name: 'F_Id', hidden: true },
                { label: '', name: 'F_DemandId', hidden: true },
            ],
            pager: "#gridPager",
            viewrecords: true,
            multiselect: false,
            sortname: 'F_Id',
            rowNum: 10,
            rowList: [10, 20, 30],
            ondblClickRow: function (rowid, iRow, iCol, e) {                
            },
            loadComplete: function (data) {

            }
        });
    }   
</script>
<div class="zdyGirdPanel">
    <table id="gridList"></table>
    <div id="gridPager"></div>
</div>

